package com.ymttest.database.sqlwapper;

import java.util.List;

import com.ymt.database.SqlManager;
import com.ymttest.database.model.CS_FastReturnLog;
import com.ymttest.utils.EnvSetup;

public class CS_FastReturnLogWapper {
	SqlManager manager;

    public CS_FastReturnLogWapper() {
        manager = new SqlManager("ymtCS" + EnvSetup.getEnv());
    }

    public CS_FastReturnLog selectByPrimaryKey(String ReturnApplyBillId) {
    	CS_FastReturnLog model=new CS_FastReturnLog();
        List<CS_FastReturnLog> result = manager
                .getSelectResults(
                        "com.ymttest.database.mapping.CS_FastReturnLogMapper.selectByPrimaryKey",
                        ReturnApplyBillId);
        if(result.size()>0)
        	model=result.get(0);
        manager.commit();
        return model;
    }

    
    public List<CS_FastReturnLog> selectByApplyBillId(String ReturnApplyBillId) {
    	CS_FastReturnLog model=new CS_FastReturnLog();
        List<CS_FastReturnLog> result = manager
                .getSelectResults(
                        "com.ymttest.database.mapping.CS_FastReturnLogMapper.selectByApplyBillId",
                        ReturnApplyBillId);
        manager.commit();
        return result;
    }
    

    public static void main(String[] args) {
    	CS_FastReturnLogWapper test = new CS_FastReturnLogWapper();

       // System.out.println(test.selectByPrimaryKey("TH180613000006136").getCatalogId());
        // test.insertYmtCouponSetting(3,11);
        // Logger.debug(test.getLastYmtCouponSettingId());


    }
}
